﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Gx.Model.Entity
{
    [Table("LK_TransferDetail")]
    public class LKTransferDetail
    {
        [Key]
        private int _id;
        /// <summary>
        /// Id
        /// </summary>
        [Column("Id")]
        public int Id
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }


        private int _transferId;
        /// <summary>
        /// 转卡单id
        /// </summary>
        [Column("TransferId")]
        public int TransferId
        {
            get
            {
                return _transferId;
            }
            set { _transferId = value; }
        }


        private string _goodsNo;
        /// <summary>
        /// 商品批号
        /// </summary>
        [Column("GoodsNo")]
        public string GoodsNo
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_goodsNo))
                    _goodsNo = string.Empty;
                return _goodsNo;
            }
            set { _goodsNo = value; }
        }


        private string _newGoodsNo;
        /// <summary>
        /// 新商品批号
        /// </summary>
        [Column("NewGoodsNo")]
        public string NewGoodsNo
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_newGoodsNo))
                    _newGoodsNo = string.Empty;
                return _newGoodsNo;
            }
            set { _newGoodsNo = value; }
        }


        private int _goodsId;
        /// <summary>
        /// 商品id
        /// </summary>
        [Column("GoodsId")]
        public int GoodsId
        {
            get
            {
                return _goodsId;
            }
            set { _goodsId = value; }
        }


        private string _goodsName;
        /// <summary>
        /// 商品名称
        /// </summary>
        [Column("GoodsName")]
        public string GoodsName
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_goodsName))
                    _goodsName = string.Empty;
                return _goodsName;
            }
            set { _goodsName = value; }
        }


        private int _goodsSpecId;
        /// <summary>
        /// 规格
        /// </summary>
        [Column("GoodsSpecId")]
        public int GoodsSpecId
        {
            get
            {
                return _goodsSpecId;
            }
            set { _goodsSpecId = value; }
        }


        private string _goodsSpecName;
        /// <summary>
        /// 规格名称
        /// </summary>
        [Column("GoodsSpecName")]
        public string GoodsSpecName
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_goodsSpecName))
                    _goodsSpecName = string.Empty;
                return _goodsSpecName;
            }
            set { _goodsSpecName = value; }
        }


        private decimal _weight;
        /// <summary>
        /// 件重
        /// </summary>
        [Column("Weight")]
        public decimal Weight
        {
            get
            {
                return _weight;
            }
            set { _weight = value; }
        }


        private int _transferNumber;
        /// <summary>
        /// 转卡件数
        /// </summary>
        [Column("TransferNumber")]
        public int TransferNumber
        {
            get
            {
                return _transferNumber;
            }
            set { _transferNumber = value; }
        }


        private decimal _area;
        /// <summary>
        /// 托盘数/面积
        /// </summary>
        [Column("Area")]
        public decimal Area
        {
            get
            {
                return _area;
            }
            set { _area = value; }
        }


        private decimal _tonWeight;
        /// <summary>
        /// 转卡吨重
        /// </summary>
        [Column("TonWeight")]
        public decimal TonWeight
        {
            get
            {
                return _tonWeight;
            }
            set { _tonWeight = value; }
        }


        private int _platePosition;
        /// <summary>
        /// 板位
        /// </summary>
        [Column("PlatePosition")]
        public int PlatePosition
        {
            get
            {
                return _platePosition;
            }
            set { _platePosition = value; }
        }


        private int _inventoryNumber;
        /// <summary>
        /// 库存件数
        /// </summary>
        [Column("InventoryNumber")]
        public int InventoryNumber
        {
            get
            {
                return _inventoryNumber;
            }
            set { _inventoryNumber = value; }
        }


        private decimal _inventoryArea;
        /// <summary>
        /// 库存托盘数/面积
        /// </summary>
        [Column("InventoryArea")]
        public decimal InventoryArea
        {
            get
            {
                return _inventoryArea;
            }
            set { _inventoryArea = value; }
        }


        private decimal _inventoryTonWeight;
        /// <summary>
        /// 库存吨重
        /// </summary>
        [Column("InventoryTonWeight")]
        public decimal InventoryTonWeight
        {
            get
            {
                return _inventoryTonWeight;
            }
            set { _inventoryTonWeight = value; }
        }


        private int _outHouse;
        /// <summary>
        /// 转出仓位
        /// </summary>
        [Column("OutHouse")]
        public int OutHouse
        {
            get
            {
                return _outHouse;
            }
            set { _outHouse = value; }
        }


        private string _outHouseName;
        /// <summary>
        /// 转出仓库名称
        /// </summary>
        [Column("OutHouseName")]
        public string OutHouseName
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_outHouseName))
                    _outHouseName = string.Empty;
                return _outHouseName;
            }
            set { _outHouseName = value; }
        }


        private int _inHouse;
        /// <summary>
        /// 转入仓位
        /// </summary>
        [Column("InHouse")]
        public int InHouse
        {
            get
            {
                return _inHouse;
            }
            set { _inHouse = value; }
        }


        private string _inHouseName;
        /// <summary>
        /// 转入仓库名称
        /// </summary>
        [Column("InHouseName")]
        public string InHouseName
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_inHouseName))
                    _inHouseName = string.Empty;
                return _inHouseName;
            }
            set { _inHouseName = value; }
        }


        private string _remark1;
        /// <summary>
        /// 备注1
        /// </summary>
        [Column("Remark1")]
        public string Remark1
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_remark1))
                    _remark1 = string.Empty;
                return _remark1;
            }
            set { _remark1 = value; }
        }


        private string _remark2;
        /// <summary>
        /// 备注2
        /// </summary>
        [Column("Remark2")]
        public string Remark2
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_remark2))
                    _remark2 = string.Empty;
                return _remark2;
            }
            set { _remark2 = value; }
        }


        private string _remark3;
        /// <summary>
        /// 备注3
        /// </summary>
        [Column("Remark3")]
        public string Remark3
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_remark3))
                    _remark3 = string.Empty;
                return _remark3;
            }
            set { _remark3 = value; }
        }


        private System.DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateTime")]
        public System.DateTime CreateTime
        {
            get
            {
                if (_createTime == DateTime.MinValue)
                {
                    return DateTime.Now;//DateTime.Parse("1911-01-01");
                }
                return _createTime;
            }
            set { _createTime = value; }
        }


        private bool _isDeleted;
        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("IsDeleted")]
        public bool IsDeleted
        {
            get
            {
                return _isDeleted;
            }
            set { _isDeleted = value; }
        }


    }
}

